//
//  OperationManager.h
//  DoctorQA
//
//  Created by sally on 16/6/24.
//  Copyright © 2016年 talecare. All rights reserved.
//

#import "HMSegmentedControl.h"
#import "OrderDetailViewController.h"
#import "ThemeDetailViewController.h"
#import <Foundation/Foundation.h>
#import <UMSocialCore/UMSocialCore.h>

typedef NS_ENUM(NSUInteger, SegmentedType) {
  SegmentedType_News,        //消息页
  SegmentedType_OrderExpert, //我约的专家页
  SegmentedType_OrderMe,     //约我的人页
};
@interface OperationManager : NSObject

#pragma mark 配置segment
+ (HMSegmentedControl *)configSegment:(HMSegmentedControl *)_segmCtrl type:(SegmentedType)type;

#pragma mark 退回首页
+ (void)gotoTabOne;

#pragma mark 退回我的管理
+ (void)gotoTabFour;

#pragma mark 判断是否跳转登录页
+ (BOOL)gotoLogin;

#pragma mark 跳转专家详情页
+ (void)gotoExpertDetailVcWithId:(NSInteger)expertId expertName:(NSString *)expertName;

#pragma mark 跳转订单详情页
+ (OrderDetailViewController *)gotoOrderDetailVcWithType:(OrderDetailType)orderDetailType status:(NSInteger)status;

#pragma mark 跳转话题详情页
+ (void)gotoThemeDetailVcWithModel:(ExpertDetailModel *)expertDetailModel topicModel:(TopicModel *)topicModel;

#pragma mark 配置相册选择sheet
+ (void)configCameraActionSheet;

#pragma mark 配置相册浏览器
+ (UIImagePickerController *)configImagePicker:(NSString *)selectStr;

#pragma mark 信鸽注册设备
+ (void)registXGDevice;

#pragma mark 信鸽注销设备
+ (void)deleteXGDevice;

#pragma mark 友盟分享内容设置
+ (void)shareWebPageToPlatformType:(UMSocialPlatformType)platformType title:(NSString *)title desc:(NSString *)desc imageUrl:(NSString *)imageUrl webUrl:(NSString *)webUrl;

#pragma mark 验证金额的正则
+ (BOOL)validateMoney:(NSString *)money;

#pragma mark 验证电话的正则
+ (BOOL)isMobileNumber:(NSString *)mobileNum;

#pragma mark 验证邮箱的正则
+ (BOOL)validateEmail:(NSString *)email;

@end
